package com.cml.rpc.register;

import java.net.InetSocketAddress;

/**
 * 服务注册两大基本功能
 * @author cml
 * @create 2021/7/22 10:01
 */
public interface ServiceRegister {
    // 服务注册
    void register(String serviceName, InetSocketAddress serverAddress);
    // 服务发现
    InetSocketAddress serviceDiscover(String serviceName);
}
